package cn.glinks.liuhe.api.jsonbean;


public class UserInfo {


    /**
     * jwt : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWlkIjoidDAwMDAwMDAiLCJwaG9uZU5vIjoiMTU4OTU0MjQwNjEiLCJwZXJtaXNzaW9uIjoiMiIsInVuaXRDb2RlIjoiUzgwMDEiLCJpYXQiOjE1MTA4MTU3MDF9.19QyRVP0xbZGusKHhfCjI1nbpH4lS7YW0JnOo4-Jmmw
     * user : {"emid":"t0000000","phoneNo":"15895424061","permission":"2","unitCode":"S8001","iat":1510815701}
     * testTask : {"finished":false,"testTaskId":1509941541,"beiginTime":"2017-11-06 12:12:21","endTime":"2017-11-23 12:22:12"}
     */

    private String jwt;
    private UserBean user;
    private TestTaskBean testTask;

    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public TestTaskBean getTestTask() {
        return testTask;
    }

    public void setTestTask(TestTaskBean testTask) {
        this.testTask = testTask;
    }

    public static class UserBean {

        /**
         * emid : t0000000
         * phoneNo : 15895424061
         * permission : 2
         * unitCode : S8001
         * iat : 1510815701
         */

        private String emid;
        private String phoneNo;
        private String permission;
        private String unitCode;
        private int iat;

        public String getEmid() {
            return emid;
        }

        public void setEmid(String emid) {
            this.emid = emid;
        }

        public String getPhoneNo() {
            return phoneNo;
        }

        public void setPhoneNo(String phoneNo) {
            this.phoneNo = phoneNo;
        }

        public String getPermission() {
            return permission;
        }

        public void setPermission(String permission) {
            this.permission = permission;
        }

        public String getUnitCode() {
            return unitCode;
        }

        public void setUnitCode(String unitCode) {
            this.unitCode = unitCode;
        }

        public int getIat() {
            return iat;
        }

        public void setIat(int iat) {
            this.iat = iat;
        }
    }

    public static class TestTaskBean {

        /**
         * finished : false
         * testTaskId : 1509941541
         * beiginTime : 2017-11-06 12:12:21
         * endTime : 2017-11-23 12:22:12
         */

        private boolean finished;
        private int testTaskId;
        private String beiginTime;
        private String endTime;

        public boolean isFinished() {
            return finished;
        }

        public void setFinished(boolean finished) {
            this.finished = finished;
        }

        public int getTestTaskId() {
            return testTaskId;
        }

        public void setTestTaskId(int testTaskId) {
            this.testTaskId = testTaskId;
        }

        public String getBeiginTime() {
            return beiginTime;
        }

        public void setBeiginTime(String beiginTime) {
            this.beiginTime = beiginTime;
        }

        public String getEndTime() {
            return endTime;
        }

        public void setEndTime(String endTime) {
            this.endTime = endTime;
        }
    }
}
